Pair Constructor (KeyValuePair)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates a new pair using elements from a KeyValuePair structure. The First element gets the Key, and the Second elements gets the Value.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public Pair(
	KeyValuePair<TFirst, TSecond> keyAndValue
)
Visual Basic (Declaration)
Public Sub New ( _
	keyAndValue As KeyValuePair(Of TFirst, TSecond) _
)
Visual C++
public:
Pair (
	KeyValuePair<TFirst, TSecond> keyAndValue
)

Parameters

keyAndValue
KeyValuePair<(Of <TFirst, TSecond>)>
The KeyValuePair to initialize the Pair with .

See Also